$.fn.getFormData = function() {
    const str = this.serialize();
    const param = {}
    const splits = str.split('&')

    splits.forEach(item => {
        const k = item.split('=')[0]
        const v = item.split('=')[1]
        param[k] = v
    })

    return param
}